
<!DOCTYPE html>
<html>
	<head>
		<title>HTML KickStart</title>
		
		<meta charset="UTF-8">
		<meta name="description" content="" />
		<?php echo Asset::js('jquery-1.7.2.min.js');?>
		<?php echo Asset::js('jquery-ui-1.8.20.custom.min.js');?>
		<?php echo Asset::css('jquery-ui-1.8.20.custom.css');?>
		<?php echo Asset::css('mystyle.css');?>
		<?php echo Asset::css('style.css');?>
		<?php echo Asset::css('kickstart.css');?>
		<?php echo Asset::css('style_search.css');?>
		<?php echo Asset::css('jtable_blue.css');?>
		<?php echo Asset::js('kickstart.js');?>
		<?php echo Asset::js('prettify.js');?>
		<?php echo Asset::js('prototype.js');?>
		<?php echo Asset::js('jquery.color.js');?>
		<?php echo Asset::js('main.js');?>
		<?php echo Asset::js('search-staff.js');?>
		<?php echo Asset::js('search-equipment.js');?>
		<?php echo Asset::js('jquery.message.js'); ?>
		<?php echo Asset::css('jquery.message.css'); ?>
		<?php echo Asset::js('validation_lib.js'); ?>
		<?php echo Asset::js('jquery.jtable.js'); ?>
		<?php echo Asset::css('jtable_standard_base.css'); ?>
		<?php echo Asset::js('jquery.validationEngine-en.js'); ?>
		<?php echo Asset::css('validationEngine.jquery.css'); ?>
		

						<script>
		
	
	( function($) {
	
	
				 

	
	
	
	
	
   $(document).ready(function() {

   <?php 
   if(isset($_GET['message'])){
   if($_GET['message'] == 'success' ){
      print ('$().message("Successful!! ");');
   }
   if($_GET['message'] == 'fail')
   {
   print ('$().message("Uh-oh! Something went wrong, please try that again. :) ");');
   }
 if($_GET['message'] == 'nosession')
   {
   print ('$().message("Ops! Please Log in first to view access this page. ");');
   print ('$().message($.("#login").val());');
   }
    if($_GET['message'] == 'invalid')
   {
   print ('$().message("Invalid User/Pass, Please try again. :)  ");');
   }
   
  if($_GET['message'] == 'invalidSession')
   {
   print ('$().message("Seems your session has expired, try login in again. ");');
   }
   
     if($_GET['message'] == 'notallowed')
   {
   print ('$().message("Only the Administrator(s) can access this page. ");');
   }
   }
   ?>

			  $('#form_birthday').datepicker();
		
		  });

} ) ( jQuery );
	
	function disabledbox(){
	
				for( x=0 ; x<4 ; x++){
				document.form_1.form_permissions[x].disabled = true;
			}
	}

	function check_(){
	
	if(document.getElementById('form_level').value == '2'){
		
			for( x=0 ; x<4 ; x++){
				document.form_1.form_permissions[x].disabled = true
			}
			
			document.form_1.form_permissions[1].checked = true;
			
			
				if(document.form_1.form_permissions[0].checked = true ){
				document.form_1.form_permissions[0].checked = false;
				document.form_1.form_permissions[2].checked = false;
				document.form_1.form_permissions[3].checked = false;
				}
				
		}else if(document.getElementById('form_level').value == '1'){
		
			for( x=0 ; x<4 ; x++){
				if(document.form_1.form_permissions[x].disabled = true){
				
				document.form_1.form_permissions[x].disabled = false;
				document.form_1.form_permissions[x].checked = true;
				
				}
			}
		
		}
	}
	



	</script>
	</head>

	<body onload="disabledbox()">
		<a id="top-of-page"></a>

		<?php echo $content; ?>
	</body>
</html>
